package com.edu.schoolforum.utils;

import com.edu.schoolforum.enums.ResultEnum;

/**
 * @author tao
 * @date 2021/8/10 23:45
 */
public class BaseException extends RuntimeException {

    ResultEnum exceptionEnum;

    public BaseException(ResultEnum exceptionEnum) {
        super(exceptionEnum.getMsg());
        this.exceptionEnum=exceptionEnum;
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public ResultEnum getExceptionEnum() {
        return exceptionEnum;
    }
}
